#ifndef CVDIALOG_H
#define CVDIALOG_H

#include <QDialog>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/core/core.hpp>
#include "opencv2/imgcodecs.hpp"
#include <opencv2/highgui/highgui.hpp>
#  include <opencv2/imgcodecs/imgcodecs_c.h>
#include "cvupdatethread.h"
namespace Ui {
class CVDialog;
}

class CVDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CVDialog(QWidget *parent = 0);
    ~CVDialog();
    cv::VideoCapture cap;
    cv::Mat frame;
    QImage img;
     CVUpdateThread *thread;
private slots:
     void on_buttonBox_clicked(QAbstractButton *button);

private:
    Ui::CVDialog *ui;
};

#endif // CVDIALOG_H
